package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.ArticleImageDao;
import com.ouheng.shop.domain.ArticleImageDO;
import com.ouheng.shop.service.ArticleImageService;



@Service
public class ArticleImageServiceImpl implements ArticleImageService {
	@Autowired
	private ArticleImageDao articleImageDao;
	
	@Override
	public ArticleImageDO get(Long id){
		return articleImageDao.get(id);
	}
	
	@Override
	public List<ArticleImageDO> list(Map<String, Object> map){
		return articleImageDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return articleImageDao.count(map);
	}
	
	@Override
	@Transactional
	public int save(ArticleImageDO articleImage){
		return articleImageDao.save(articleImage);
	}
	
	@Override
	@Transactional
	public int update(ArticleImageDO articleImage){
		return articleImageDao.update(articleImage);
	}
	
	@Override
	@Transactional
	public int remove(Long id){
		return articleImageDao.remove(id);
	}
	
	@Override
	@Transactional
	public int batchRemove(Long[] ids){
		return articleImageDao.batchRemove(ids);
	}
	
}
